package com.ke.forum.forumapi.controller;


import com.ke.forum.common.common.Result;
import com.ke.forum.forumapi.service.UserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 珂
 * @since 2022-05-22
 */
@RestController
@RequestMapping("/user-follow")
public class UserFollowController {

    @Autowired
    UserFollowService userFollowService;

    @GetMapping("/addStar")
    public Result addStar(@RequestParam(value = "upUuid") String upUuid){
        return userFollowService.addStar(upUuid);
    }

    @GetMapping("deleteStar")
    public Result deleteStar(@RequestParam(value = "upUuid") String upUuid){
        return userFollowService.deleteStar(upUuid);
    }
}

